// 用于主页面通用内容
import Main from '@/views/main.vue';
// 用于二级页面的内容
import SubMain from '@/views/sub-main.vue';

export default {
	path: '/app',
	name: 'app',
	redirect: '/app/market/index',
	meta: {
		title: '应用',
		multilevel: true,
		icon: 'md-aperture',
		style: {
			marginTop: '50px'
		}
	},
    component: Main,
    children: [
    	{
			path: 'market',
			name: 'app_market',
			meta: {
				divider: false
			},
			component: SubMain,
			children: [
				{
					path: 'index',
					name: 'app_market_index',
					meta: {
						title: '营销中心'
					},
					component: resolve => {
						require(['@/views/app/market/index.vue'], resolve)
					}
				}
			]
		},
		{
			path: 'popularize',
			name: 'app_popularize',
			meta: {
				divider: false
			},
			component: SubMain,
			children: [
				{
					path: 'index',
					name: 'app_popularize_index',
					meta: {
						title: '推广中心'
					},
					component: resolve => {
						require(['@/views/app/popularize/index.vue'], resolve)
					}
				}
			]
		}
    ]
}
